import model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.Test;

import static org.testng.Assert.assertTrue;

@ContextConfiguration("classpath*:test111-context.xml")
public class Springtest extends AbstractTestNGSpringContextTests {

    @Autowired
    Student student;

    @Test
    public void beantest() {
        assertTrue(student!=null);
    }


}
